{switch $d}
{case 1}
<form method="post" action="{:url('addapartment')}">
    <table>
        <tr><td>部门ID:</td><td><input type="text" name="uid" required></td></tr>
        <tr><td>部门名称:</td><td><input type="text" name="apartment" required></td></tr>
        <tr><td>系部标明:</td><td><input type="text" name="s"></td></tr>
        <tr><td></td><td><input type="submit"></td></tr>
        <tr style="color: red;font-weight: bolder"><td>系部标明:</td><td>部门为系部，添上小写s，为其他部门默认不填。</td></tr>

    </table>
</form>
{/case}

{case 2}
<form method="post" action="{:url('addmajor')}">
    <table>
        <tr><td>部门ID:</td><td><input type="text" name="uid" required></td></tr>
        <tr><td>专业编号:</td><td><input type="text" name="mid" required></td></tr>
        <tr><td>专业名称:</td><td><input type="text" name="name" required></td></tr>
        <tr><td></td><td><input type="submit"></td></tr>
    </table>
</form>
{/case}

{case 3}
<form method="post" action="{:url('addclassi')}">
    <table>
        <tr><td>班级编号:</td><td><input type="text" name="cid" required></td></tr>
        <tr><td>班级名称:</td><td><input type="text" name="classname" required></td></tr>
        <tr><td>年级:</td><td><input type="text" name="grade" required></td></tr>
        <tr><td>所属专业:</td><td><input type="text" name="mid" required></td></tr>
        <tr><td>所属部门ID:</td><td><input type="text" name="uid" required></td></tr>
        <tr><td></td><td><input type="submit"></td></tr>
    </table>
</form>
{/case}
{/switch}



































